#include "log.hpp"

using namespace std;

int main()
{
    Log lg;
    int cnt = 5;
    while(cnt--)
    {
        // 默认向显示器上打印
        lg(Info, "this a info");
        lg(Debug, "this a debug");
        lg(Fatal, "this a fatal");
    }
    cnt = 5;
    while(cnt--)
    {
        // 向一个文件内打印
        lg.LogWhere(OneFile);
        lg(Info, "this a info");
        lg(Debug, "this a debug");
        lg(Fatal, "this a fatal");
    }
    cnt = 5;
    while(cnt--)
    {
        // 向多个文件中打印
        lg.LogWhere(ClassFile);
        lg(Info, "this a info");
        lg(Debug, "this a debug");
        lg(Fatal, "this a fatal");
    }
    // cout << "hell" << endl;
    return 0;
}